<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JQuery的实现方式1--ajax</title>
    <script src="js/jquery.min.js"></script>
</head>
<script>



    //定义方法
    function fun(){
        $.get("ajaxServlet",{usernames: tom},function (bbb) {
       alert(bbb);
        },"text");//后面三个参数可写可不写

    }


</script>


<body>
<input type="button" value="发送异步请求" onclick="fun();">
<input type="submit" >
</body>
</html>